package com.wt.bean;

import com.wt.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @Auther: wtt
 * @Date: 2022/1/15 12:20
 * @Description:
 */
@Component
public class ConsumerComponent {

    @Reference(loadbalance = "onlyFirst")
    private HelloService helloService;

    public String sayHello(String name) {
        return helloService.sayHello(name);
    }
}
